
  This document was last modified: 30 July 2009. 


  Data and Codes for PSS Paper.zip contains the following subfolders:


  ProgramsLibrariesSourceCode    folder that contains the following files

  
  gvarForc_2005Q4.txt		 txt file (Main program, computes the Forecasts and RMSFEs)

  DMstatistic_2005Q4.txt         txt file (Subprogram, computes the Diebold-Mariano statistics)

  gvarlbForc.lib	         gauss library file
 
  gvarscForc.src                 gauss source code file

  gvarlb2005Q4.lib               gauss library file

  gvarsc2005Q4.src               gauss source code file
  

  ImportFiles                   folder that contains the input excel files that the gauss
                                program reads from described in section II below

  Interpolation                 folder described in section IV below

  OtherFiles                    folder described in section IV below

  data_79Q1-05Q4                folder described in section IV below 


  The programs gvarForc.txt and DMstatistic.txt can be used to replicate the empirical results reported in:
 

     M. Hashem Pesaran, Til Schuermann and L. Vanessa Smith (2009) - PSS(2009), "Forecasting Economic
     and Financial Variables with Global VARs",International Journal of Forecasting, forthcoming.                    
 
     The two main GVAR models, DdPS and DHPS are described in detail in the following two published
     papers using an earlier data set ending in 2003Q4.
                                                                                                                                   
  1. Stephane Dees, Filippo di Mauro, M. Hashem Pesaran and L. Vanessa Smith (2007) - DdPS(2007),
     "Exploring the International Linkages of the Euro Area: A Global VAR Analysis",Journal of 
      Applied Econometrics 22, 1-38. 
 						
  2. Stephane Dees, Sean Holly, M. Hashem Pesaran and L. Vanessa Smith (2007) - DHPS (2007),
     "Long Run Macroeconomic Relations in the Global Economy", Economics - The Open-Access, 
     Open-Assessment E-Journal, 2007-3.            


 *****************************************************************************************  
  Note 1: All code was written using gauss6.0 for windows. Its use with later versions
        should be compatible, while its use with earlier gauss versions may be problematic.

  Note 2: The forecasting code is strictly compatible with the version of the GVAR source 
        code  gvarsc2005Q4 included in this folder. It will not work with previous/other
        versions of the GVAR source code.
 *****************************************************************************************  


     Contents:

    I.   INSTALLATION OF THE PROGRAMS
    II.  DESCRIPTION OF INPUT FILES
    III. DESCRIPTION OF OUTPUT FILES
    IV.  DESCRIPTION OF OTHER FOLDERS & FILES 


   I. INSTALLATION OF THE PROGRAMS



  1. Create a directory and extract (or copy) all of the folders and files within
     Data and Codes for PSS Paper.zip to that directory.


  2. Add gvarscForc.src and gvarsc2005Q4.src, the source code files to the src folder within
     the gauss6.0 folder. Add gvarlbForc.lib and gvarlb2005Q4.lib, the library files to the lib
     folder within the gauss6.0 folder.


  3. Create the path c:\\gauss6.0\\gvar

        i.  Place the folder ImportFiles in the gvar folder

        ii. Within the gvar folder create a folder named output and within the 
            output folder create another folder named forecast.

        The following paths should then exist:
        
         c:\\gauss6.0\\gvar\\ImportFiles
         c:\\gauss6.0\\gvar\\output\\forecast

   *****************************************************************************   
   NOTE: If the path that defines the location of the gauss program on your pc
         is different than c:\\gauss6.0, then this path needs to be replaced
         by the appropriate one, both in all gauss programs and in all the source
         code files. Tip: Search for c:\ this should cover all locations
         where the path needs to be replaced.    
   *****************************************************************************  

       
    
    II. DESCRIPTION OF INPUT FILES
     

      All the input files that the gvar program reads from are located in the folder
      named ImportFiles. This folder consists of the following files:                       

       
     1. countrydata33_2005Q4.xls 	: Excel workbook that contains the quarterly (1979Q1-2003Q4) DdPS (2007) data
                                   	  for the 33 countries used in the GVAR, updated to 2005Q4 as described in 
				   	  PSS (2009). Note that the number "8934567" is used when data are not available.
                                   	  
                                 	
     2. tradematrix8005.xls      	: Annual trade figures for the period 1980-2005. Updated version of the
                                   	  trade figures in DdPS (2007).

     3. Models19_DdPS-GVAR&DHPS-GVAR.xls: Excel workbook specifying the models considered in the forecasting exercise
					  as described in PSS (2009).
					  

     4. xforc_1QuarterAhead_2005Q4.xls  : Actual data and one quarter ahead forecasts over the period 2004Q1-2005Q4 
					  of the individual GVAR models and benchmark models across the 10 estimation 
                                   	  windows. The last four sheets correspond to the benchmark models in the 
					  following order: AR(1), AR(1) with trend, Random Walk (RW) and RW with drift. 
					  The first 19 sheets correspond to the models in the order specified in the 
                                     	  Models19_DdPS-GVAR&DHPS-GVAR file.
                           
  For a description of the rest of the files not mentioned above see the readme file in the gvar.zip folder
  corresponding to DdPS (2007) at http://www.econ.queensu.ca/jae/2007-v22.1/dees-di_mauro-pesaran-smith/.


     III. DESCRIPTION OF OUTPUT FILES 
   

        All the files described below are extracted to the forecast folder:

           
      1. #models.xls       	    :  gives the number of models, 23 in total (19+4benchmarks), for which the
 			     	       RMSFE computations have just been completed.This allows to monitor the 
			     	       program and have an idea at what stage it is at.

      2. xforc_2005Q4.xls  	    :  Actual data and one to eight quarter ahead forecasts (2004Q1-2005Q4) of the 
                             	       individual GVAR models and benchmark models across the 10 estimation windows. 
                             	       See xforc_1QuarterAhead_2005Q4 for the model ordering. Note that the
			     	       xforc_1QuarterAhead file is a subset of xforc_2005Q4 containing only the 
                             	       one step ahead forecasts. To identify the variable and country name 
                             	       use the codes in the file CountryVariableNames&Codes.  


      3. RMSFE_Tables_2005Q4.xls     :  Country specific RMSFEs (190: 19modelsx10windows) and averages over the
                              	     	different country groupings over the period 2004Q1-2005Q4. The GVAR-AveAve
					forecast is at the intersection of Ave_m (Average across models for a
					specific estimation window) and Ave_W (Average across estimation windows
					for a particular model). Use the Template_RMSFE_2005Q4 file to view the 
					averages of the RMSFE across the 3 different groupings mentioned below.   

      4. Exceedence_Tables_2005Q4.xls : These results are based on the RMSFE results. One indicates that the
                                 	GVAR-AveAve RMSFE error exceeds the individual GVAR model RMFSE. #Exceedence 
                                 	sums the number of ones and EXceedence(%) computes the total number of ones
                                 	divided by the total number of RMSFE entries (190 in total). 
                                 	The same for the benchmarks models.     


      5. DM_statistics_2005Q4         : Panel Diebold Mariano statistic to determine whether the forecasts from 
                              	      	the GVAR over the period 2004Q1-2005Q4 can be statistically distinguished from
					a benchmark forecast at conventional significance levels      
     
 


        IV. DESCRIPTION OF OTHER FOLDERS & FILES

      i. OtherFiles

        CountryVariableName&Codes.xls   : Contains the names and the codes of the countries and variables used in the
                                          forecasting exercise of the GVAR.

        GVAR-AveAVe Forecasts_2005Q4.xls: Gives the actual data and GVAR-AVeAve one quarter ahead forecasts over the period 2004Q1-2005Q4.

        Template_RMSFE_2005Q4.xls       : Contains excel template for viewing the average RMSFE results over the period 2004Q1-2005Q4 
                              		  across the 3 groupings:Industrialised plus China, All Countries Excluding LA, and All Countries. 
                              		  Note that this template contains the RMSFE tables that will be produced from running the   
					  gvarForc_2005Q4.prg file.
   					
      ii. data_79Q1-05Q4 

          Contains individual country csv files with data over the period 1979Q1-2005Q4 for the domestic and foreign (star)
	  variables used in the country-specific VARX* models of the GVAR variants. For more details see the Readme_Data file
	  in the data_79Q1-05Q4 folder.


      iii. Interpolation 

          Interpolation Proc.txt: Procedure used for interpolating annual gdp to quarterly, see Data Sources in PSS (2009)
          			  for the country GDP's that required interpolation as well as Supplement A to DdPS (2007)
                                  at http://www.econ.queensu.ca/jae/2007-v22.1/dees-di_mauro-pesaran-smith/ for details of
				  the interpolation procedure.

          ExampleSheet.xls:  An example excel file that shows how the data needs to be set up in order to execute the 
                             interpolation procedure. 

          
   

     L.Vanessa Smith
     lvs21@cam.ac.uk
    